import { configureStore } from "@reduxjs/toolkit";
import { editSlice } from "screens/edit/edit.slice";
import { mainSlice } from "screens/main/main.slice";

export const rootReducer = {
  main: mainSlice.reducer,
  edit:editSlice.reducer
};

export const store = configureStore({
  reducer: rootReducer,
});

export type AppDispatch = typeof store.dispatch;

export type RootState = ReturnType<typeof store.getState>;
